Un-generify.
Remove compare method duplication.