Consolidate strip.c functionality into format.c