[#56904820] changed contents controller to use mongoid factory to build subclass instance