The caps query is implementing the same logic as the default handler from the base class. Reuse it to simplify code.