select: BH-templates refactoring