Update AutoBalancer codes

- Remove duplicate declaration of ``transition_smooth_gain`` from Stabilizer and Autoblanancer
- Remove unused codes
- Rename functions and variables and align functions