Split document positioning methods into a helper