Completely refactor and simplify the initialization plugin.