tidied up code for BlogDataFactory and dependencies