Migrated the initialize module to the context class.