Refactor the import pages functionality with the Parser