Suggested refactoring for line 30 to this point:
```javascript
            var object_json = null;
            switch(this.which_to_which){
                case "onlinetooffline": 
                    object_json = {
                        off_json = conv_json,
                        on_json = json
                    }
                    break;
                default:
                    object_json = {
                        off_json = json,
                        on_json = conv_json
                    }
            }
            if(this.field_dfds.length)
            {
                $.when.apply($, this.field_dfds)
                    .done(function(){
                        return dfd.resolve(object_json);
                    })
                    .fail(function(){
                        return dfd.reject();
                    });
            }
            else
            {
                console.log("FORMCONTROLLER:convert_namespace: Nothing to convert.");
                return dfd.resolve(object_json);
            }
```