Added `getMetaTaskState` method to factory