We have a event system that allows adding gcode and mcodes without modifying the original code. Check on github where you see some sample event implementation and read the Events.h description on what you can modify.
In drivers.h/cpp we also allow adding extra motor drivers. You could use that for the conveyor belt, maybe in modified version if you need endstop handling.