Base pieces of code that helps in DDD implementation