Former CEO Amit Sharma is taking on a longer-term adviser role.