DMO-3050
Updated the state change remark and reason code functionality to only be enabled if the associated module configuration is enabled.