Make Parser an instance-class, move variable and method replacements to Parser