Move defining the server into populateAndGet helper

Signed-off-by: Ian Macalinao <me@ian.pw>