Refactor State to export the singleton by default.