some restructure and clean up in bank_splitter
The previous implementation had inefficient I/O and was missing some information to be stored in json file.
To address these issues, the code was restructured and cleaned up.
This shouldn't affect any result and I confirmed that it recovered the identical set of template ids for the split banks.