Extract dependency to httpbuilder to resources.groovy (DI)