Refactor to remove code duplication from ServerConfigurationBean.

Saw a comment flagging tech debt, so I fixed it.
I really like this idea, but why not have the `PropertyWithKey` class hold the property value as well?