Change all module classes to resource definitions