factor out FunctionPresenter#entry_for