ritual: stereotyped behavior
habit: (psychology) an automatic pattern of behavior in reaction to a specific situation; may be inherited or acquired through frequent repetition
grounds: dregs consisting of solid particles (especially of coffee) that form a residue