Moved all data related code to a separate Data namespace.