Move style util methods to a separate class