Split ugly method in several smaller methods