Configration to immutable object