[mythtv-cmyth] Refactoring schedule management