We often use the peripheral pin select (PPS) feature of PIC24F devices. This feature gives you the option to map some peripherals onto many different pins, instead of being locked onto specific pins. Here’s the reference manual for PPS.
Most of the PIC24F family devices support the Peripheral Pin Select (PPS) feature. The PPS constitutes pins which users can map to the input and/or output of some digital peripherals.