Extract private method from divide