- remove duplication of logic - reduce code lines to half (not entire module, but the part this refactor is applied to)