A software developer is creating a complex inventory management system. They decide to structure their code using subroutines.
State three advantages of using subroutines in a computer program.