Refactor: Move initialization code into separate initializers that use the API we
developed for plugins.