Added dedupelication code to story service.