Refactoring skriptu administrace