Simplify hooks API.