Refactor to remove code duplication from ServerConfigurationBean.

Saw a comment flagging tech debt, so I fixed it.
That is definitely worth considering. I created this to get a way to abstract over passing a field by reference, but might as well handle everything if it can work. The annotations on fields may make it difficult.