Can this be extracted somewhere to finish splitting up the rules below?