Refactors some code.
Refactor base types to SharpFlame.Core.Domain.