Add a convenience method for instantiating concrete subclasses of some abstract ancestor

Summary: This pattern occurs fairly often in Phabricator; add a helper method.

Test Plan: Used in D5756.

Reviewers: btrahan, vrana

Reviewed By: vrana

CC: aran

Differential Revision: https://secure.phabricator.com/D5757