Behavior of the Borel-Weil-Bott construction under pullbacks