Seperates config to prefix and config