Move 'posts' into a factory