Rewrite the ResourceType enum