Extracting security to external dependency.