Refactor to remove code duplication from ServerConfigurationBean.

Saw a comment flagging tech debt, so I fixed it.
Switched methods to take a list rather than varargs, so no array is required :satisfied: