I would recommend moving this to a function which is named for why it exists so I don't have to infer it's purpose by decomposing the code.