Refactored patched_field to use mixin field classes instead of ugly functions