Prevent duplicate code.