Fix failing builds when integration tests fails for v2.3.4 and v2.3.5.

Basically, I replaced all the static method calls from the bean definitions which was polluting the `grails.spring.BeanBuilder` by moving them out of the definition. 

All tests should pass now for v2.3.4 and v.2.3.5.