Revert "Refactor: Data is no longer a global"

This reverts commit 562d1edbbab7789feacb7debbb07d232153969e6.