fix: remove duplicate file, extract parsing module

1. remove duplicate file
2. extract parsing code into a module