Make browserpreferencemanager independent