Cleaning up defines and pin assignments.