Rewrite ModuleLibrary as Enum Singleton