This is how I'd rewrite the reshape statement for ``phi`` and ``theta`` above too.