Factor out method invocations into a util class