OpenXR: Break out end frame handling to its own file since it's so big.