Use nested module/class definitions instead of compact style
Use percent delimiters consistently
Fix array indentation
Remove unnecessary double negation
Alias interface_defined? to interface_defined