Added abstract gateway config factory class.