Split AngleComparator class into separate file.