Refactor to remove code duplication from ServerConfigurationBean.

Saw a comment flagging tech debt, so I fixed it.
We only need explicit setters for the ones that have a validation annotation on top of them. In any case, what we have here is an improvement already, so I wouldn't hold it up for that.