Moving config to an angular provider