This probably belongs in an object that can be tested independently.