Refactor: Made all helpers private. Using if-let to shorten parse-token