extract method would make it cleaner I think