Moved shared code to parent Check class.