Replenishment WB customization

Can the replenishment WB code be modified or customized or is this something locked by Epicor? I understand that is a broad statement.

It appears the code is looking a total demand and we need it to look at sales demand only. It also doesn’t appear to be subtracting the demand from the onhand qty on parts that are above minimum kanban levels.