Extracts common builder functionality into an abstract class.