Are you referring to the Envelope reader in GML/v3.js?  That might work, but I am unsure how to reuse a reader from a different class, especially if it is reading an attribute with a different name.  (And the WCS variant is also looking for an srs that I don't see in the GML version, though this might be easy to address.)  But generally, I'm always in favor of code reuse!