Replace define plugin with newer freebase plugin