Replace Parser class with #decode function