Moved shared classes into core project.