Factorize some more code
Factorize some more code

Just like we made a helper to save strctured data to a local file, let's
use a helper to do the exact opposite operation.

ideascube/ideascube,ideascube/ideascube,ideascube/ideascube,ideascube/ideascube