Decreased the size of the autonomous file by moving more of the shared code to header files.
Signed-off-by: Trevor Nielsen