format_url and valid_url is set to initiater module AttributeExtractor, and code is optimized.