Refactor insertIntoObject composition