ComponentAccumulator: code cleanup
Some minor code cleanup for ComponentAccumulator
:
- move legacy conversion code into separate module
- limit line length where sensible
- covert double-underscore names to single-underscore
- shorten some of the excessively long variable names
- move imports to top of file where possible