Doing such side studies is fine in itself, but selling such shakey results as "This study suggests that high-dose vitamin D3 supplementation during pregnancy may be associated with improved cognitive functioning at age 10 years." is a stretch.
It's a hypothesis seeking study. It just invalidated 8 of them and picked 1 ok-ish candidate to run an actual study in.
The only thing wrong here is there's only one format for submitting a paper.
I think this is quite the case for vitamin D which has multiple physiologic roles and is studied extensively for relation to many categories of health issues. One more reason why it can be stunningly impressive when something/anything health-related is eventually proven.