Open energy monitor binding: Code cleanup.