Refactor to grails app.