Unify duplicate code for powering on an instance

Moves duplicate code to a common method

Change-Id: I9809e654df8602c00a18cbb7be3a4cf4498b274b
Merge "Unify duplicate code for powering on an instance"