Another option is to use a super source. You can duplicate your class. Such a class will be an exact copy minus the methods you want to exclude. Then add the superuser directive to include this duplicate class.
The disadvantage of this is that you violate the principle, do not repeat yourself (DRY). It is also important to understand that in the placement mode the actual class will be called, not the super-source.
source share