Refactored a bunch of requires into a base class.