Refactored how snippet files are parsed.