DRY up active_record adapter methods with WhereBuilder class.