Moving server into separate file