refacting service pipeline features into a service and model methods