Pulls out repeated computation into a separate variable