Rewrite of op_presence based on profiles