Extract build_pseudo_markup to a method object.