removing duplicated code that initializes notification config factory