Refactor methods to reduce complexity and expose duplicated code