This reminded me of the video about the Tesla door handles, where its explained how they redesigned the retracting door handles of the Model S from having a bunch of switches and mechanical parts to just a motor + a position sensor:
https://www.youtube.com/watch?v=Bea4FS-zDzc