Shift server builder out into separate function.