Extracts method for following a ref.