Extract method to create departments from services

With test