Internal parts of the facade API.