Builds a custom production pattern used in foundry.