Extracted BaseQueryBuilder abstract class