Extracted infrastructure server code into own module.