qdoc: Simplification of target ref construction