minimal refactoring to extract line/char change size into separate class