Clean up category validation.