Refactor composer module to guidelines