ASE Scrypt. Refactoring