Break instance_* functions out of API.

Route instance functions through a mixin class.

Change-Id: I2974af02c21efcae64068c3cd4f465a6435b0483