Move code to abandon building to a new method.