Replace apply_metaclass_roles with apply_metaroles