photos notification refactory