Use "assign default values" sh feature to simplify defaults handling