[wmlunits] Filter out eras from dependencies