Refactor shell init to dispatch the environment variables to specific formatters