Remove accidental code duplication