Revert QP.prepare refactoring & rename getPrepared thrift variant