Refactor execute stuff to make it support pluggable compute backends

Test Plan: -

Reviewers: marcua

Reviewed By: marcua

Differential Revision: https://phabricator.locu.com/D7714