Delete useless code after spending more time on it.

More testing is required, especially across Grails versions.