Extracted domain class definitions into separate source file.