[issue #9] Added factory methods for service definitions.