Break down task to make it more testable