Moved core data code entirely out of custom client code and into generated flatpack code