Refactoring feast calendar into using codes