Restructuring around Slim framework