We could refactor this into a helper function since it is used again below for the CR categories. _Originally posted by @bryates in https://github.com/TopEFT/topeft/pull/493#discussion_r2349353375_