Allow both targets with explicit attributes and beans.
Reviewed-by: Jim Moores