Refactoring into ParseHTML