reusable routine

Noun
  1. a routine that can be loaded once and executed repeatedly
reusable routine
A programmer writes a reusable routine to sort data.