Extracting deep duplication & snowflaking code to seperate method