Ylläpito php refactor