Ecologically Inspired Refinement of Engineered Systems