Remove code that uses study_variation table - it no longer exists