Restructure of application service layer to command handler