remove some runtime metaprogrogramming

Related to https://github.com/grails/grails-core/commit/00807b302cc0f841cb49278ffa0b4bc31953a6f5