Refactored oncall handling for better code reuse with teams