Remove empty parentheses from method definitions