Get rid of extra panel code.