Don't depend on the text of disabled units

This prevents pulling in unnecessary dependencies.

(cherry picked from commit f198c4060806706203420c6951b136a42a44d750)