Move setup tasks from onEnable to their own private functions for better
 readability.