It would be a lot of cost and work to make the change in relation to the amount of inconvenience. In addition to the width issue, the connections would be difficult to plumb. Most appliances, a clothes washer needs a 1.5" standing drain at least 30" high. from entrance to trapway. This would require a lot of changes in the wall.
Another option is an in-sink setup, where the drain discharges into the sink. This is how a lot of washers drain in older homes with washtubs.