Reformat into a library, remove @Mod