Initialize service and dependency directly in add and add_dependency