Refactor: pipeline.HandlerFunc -> pipeline.EndpointFunc