Move inital_build task into own function