It works on my Xperia x compact. It's just a workaround. On my phone the problem is with camera button that was deasappeared after the rom unlocking aldo with drm fixed in...
Well yes you can root you phone and remove the messages app but i warn you that removing system apps is very risky. Why not just disable it because removing it completely you might regret it greatly afterwards
Go to settings
Go to apps or app manager
Go to all apps (differs from phone to phone)
Search for the message app tap on it and then disable it.