Add seperation of code from config for rest api module.