Finished Index.fs upgrade

Signed-off-by: Seemant Rajvanshi <seemant.rajvanshi@gmail.com>
Converted mef factory to use choice

Signed-off-by: Seemant Rajvanshi <seemant.rajvanshi@gmail.com>