This is where you will be spending many hours of your hacking time.
Use the AR Slide Code Generator to save space and reduce code size. If you have a code that affects 50 "Units" for example, and you know that the offset is the same between all of them, you can create a slide code to reduce the amount of space your code will take.