Refactor for W only APIs (close gh-53).
Move specific prologue and epilogue to concrete dispatchers (ref gh-30).