Refactored out external dependency.