Move fragmentParser from search module to core module.