Remove existing methods before redefining
Fix private attr_reader warning
Fix ambiguous argument warnings
Fix uninitialized variable warnings
Fix unused variable warnings
Fix circular require warnings