Clean the codes.  Refs #7001.