Eliminate reflection warnings

See https://gist.github.com/brandonbloom/4ba5cac0acc34275e07d