Refactors password views