Split stuff into methods