Wikidata introduced JSON as a new wiki text format. To accommodate this change and be prepared for the next formats that will follow @jcsahnwaldt suggested a number of refactoring actions.
There are described in pull request #35 as well as in this developers thread
Pull request #35 also contains 2 drawings on the current extraction design and the new one we want.
This work is estimated from 1 day (minimum) to 1 week (maximum)