TOOLS-713: Move "createInstance" function into shared module, since we will use it for ha-manatee (TOOLS-714)