Moved mixin building functions from algorithm component to a separate
component