refactor service contents to reduce duplication