Refactor import from Instapaper script