Refactor to remove code duplication from ServerConfigurationBean.

Saw a comment flagging tech debt, so I fixed it.
Nitpick: Could have been `Collection` instead of `List`. (Don't hold up the PR because of this)