Move domain code to a separate folder and split it from the persistence layer.