Refactor bank activity record parsing