Broke some of the compose action into a util class