I have a situation where I have one module that returns features queried from ArcGIS Server and another module that expects features like those that come directly from a map layer. The ones from the map layer have a lot more attributes like _layer. I need to modify the first module to return features like the second module. What's the best way to do that?