Migrate policy function