Cleaned up rule creation APIs