Add new feature to use a resource mixin

This allow us to do not duplicate code with resource options and use the
generic one.