remove some duplicate method calls in doc template