You can set the default to null. And then in the Extension check if the FosUserBundle is present and set the value there. In this current situation this might break the code.