Refactor to use cleaner, DRYer mixins to generate prefixes