Correctly generate encoders for a group of specs