... and move the common functionality of their hit() and hover() implementation to a separate function.