On the origins of the mitotic shift in proliferating cell layers